package com.wulis.provider.basic.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wulis.common.model.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 基础信息管理：用户表
 *
 * @author WuliBao
 * @date 2020-05-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("basic_user_info")
@ApiModel(value = "UserInfo对象", description = "基础信息管理：用户表")
public class UserInfo extends BaseEntity<UserInfo> {
    
    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty(value = "账号ID")
    @TableField("account_id")
    private Long accountId;
    
    @ApiModelProperty(value = "部门ID")
    @TableField("department_id")
    private Long departmentId;
    
    @ApiModelProperty(value = "职位ID")
    @TableField("position_id")
    private Long positionId;
    
    @ApiModelProperty(value = "用户名称")
    @TableField("user_name")
    private String userName;
    
    @ApiModelProperty(value = "手机号码")
    @TableField("phone_number")
    private String phoneNumber;
    
    @ApiModelProperty(value = "邮箱")
    @TableField("mail")
    private String mail;
    
    @ApiModelProperty(value = "性别：0男 1女")
    @TableField("sex")
    private Integer sex;
    
    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;
    
    @ApiModelProperty(value = "启用状态：0关闭 1启用")
    @TableField("enable")
    private Integer enable;
    
}
